<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-05-05 12:24:12
         compiled from "C:/wamp/www/project.adm.uppii/admin/aplications/views/menu\menu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:208145548bb59e3b041-76219428%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4fdbee5b23783b7103ebc59b04e391c38d0d8ec6' => 
    array (
      0 => 'C:/wamp/www/project.adm.uppii/admin/aplications/views/menu\\menu.tpl',
      1 => 1430839449,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '208145548bb59e3b041-76219428',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5548bb59f19af8_51258148',
  'variables' => 
  array (
    'selectMenu' => 0,
    'optionSelect' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5548bb59f19af8_51258148')) {function content_5548bb59f19af8_51258148($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'C:\\wamp\\www\\project.adm.uppii\\admin\\aplications\\libs\\smarty\\libs\\plugins\\function.html_options.php';
?><?php echo $_smarty_tpl->getSubTemplate ('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<?php echo '<script'; ?>
 type="text/javascript"> 
    jQuery(function(){
        ///seleciona o valor do id e coloca da url do form de selecionar o menu
        if(issetElement("#select_menu")){
            jQuery("#select_menu").change(function(){
                var $_this = jQuery(this), $_frm = $_this.closest('form'),value=$_this.val();
                if(value > 0){
                    $_frm.attr("action",DOMINIOADMIN+"menu/edit/"+value);
                }else{
                    $_frm.attr("action",DOMINIOADMIN+"menu");
                }
            });
        }
    });
<?php echo '</script'; ?>
>


<section class='b_padding_15x'>
    <div class='row'>
        <div class='col-lg-12'>
            <section class='widget'>
                <div class='widget-content'>
                    <form id='frm_select_menu' method="POST" action='<?php echo @constant('URLDOMINIOADMIN');?>
menu/edit/<?php echo (($tmp = @$_GET['id'])===null||$tmp==='' ? 0 : $tmp);?>
'>
                        <fieldset>
                            <label>Selecione um menu para editar</label>
                            <select name='nome_menu' id="select_menu">
                                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['selectMenu']->value,'selected'=>$_smarty_tpl->tpl_vars['optionSelect']->value),$_smarty_tpl);?>

                            </select>
                            <button class='btn btn-xs btn-success' type="submit">Selecionar</button>
                            <span>ou crie um novo menu clicando ao lado </span>
                            <a href='<?php echo @constant('URLDOMINIOADMIN');?>
menu/newmenu' class='btn btn-xs btn-warning'>
                                <i class='ion ion-plus-circled'></i>
                                <span>Criar novo menu</span>
                            </a>
                        </fieldset>
                    </form>
                </div>
            </section>
        </div>
    </div><!--end #row-->
    <?php if ($_GET['action']=='edit') {?>
        <?php echo $_smarty_tpl->getSubTemplate ('editmenu.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    <?php } elseif ($_GET['action']=='newmenu') {?>
         <?php echo $_smarty_tpl->getSubTemplate ('newmenu.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    <?php }?>
    
</section>



<?php echo $_smarty_tpl->getSubTemplate ('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
